from shared_resources import *

sql_connection = sqlite3.connect(global_vars["database"])
sql_cursor = sql_connection.cursor()    

#print "Lessons deleted: ", sql_cursor.execute("""select * from lessons where (select id from classes where id = class_id) is NULL""").fetchone()

#sql_cursor.execute("""delete from lessons where (select id from classes where id = class_id) is NULL""")
#sql_connection.commit()